package com.hyzx.qbasic.admin.domain.repository;

import com.github.pagehelper.PageInfo;
import com.hyzx.qbasic.admin.model.po.CmsChannelInfoPO;
import com.hyzx.qbasic.admin.model.po.CmsChannelPO;

import java.util.List;

/**
 * Created by 黄江华 on 2018/7/24
 */

public interface ICmsChannelRepository {
    List<CmsChannelPO> getAllCmsChannelList();

    PageInfo<CmsChannelInfoPO> getPagedCmsChannelList(int pageNum, int pageSize, String channelName, Integer channelId);

    boolean addCmsChannel(CmsChannelPO channel);

    boolean deleteCmsChannel(List<Integer> channelIdList);

    CmsChannelPO getCmsChannelInfo(int channelId);

    boolean editCmsChannel(CmsChannelPO channel);
}
